<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?><!DOCTYPE html><html lang="en">
	<head>
		<!--加载header文件-->
		<?php
		include_once 'public/views/header.php';
		include_once 'public/home/html/alert.php';
		include_once 'public/home/html/laydate.php';
		include_once "public/home/html/search-select.php";
		?>
		<link rel="stylesheet" href="public/css/list.css" />
		<link rel="stylesheet" href="public/xr/xrDatatable.css" />
		<script src="public/xr/xrDatatable.js?v=20231124"></script>
		<script src="public/js/list.js"></script>
		<script src="cust/js/noattendList.js?v=2023102701"></script>
		<script src="public/home/js/function.js"></script>
	</head>
	<body>
		<input type="hidden" id="zjipc_auth_url" value="<?php echo ZJIPC_AUTH_URL ?>">
		<input type="hidden" id="zjipc_app_id" value="<?php echo ZJIPC_APP_ID ?>">
		<div class="page-container container">
			<div class="searchForm">
			    <div class="searchForm-title"><i class="icon-table searchForm-title-icon"></i>数据表格<i class="icon-double-angle-up searchFormTitleIcon"></i></div>
			    <div class="searchForm-main">
			    	<form id="searchForm">
						   <!-- <select name="dept_name" id="dept_name" >
				               <option value="-1">教师所属分院（部）</option>
				               <?php foreach ($dept_name as $k => $v):?>
				                <option value="<?=$v['name']?>"><?=$v['dept_name']?></option>
				               <?php endforeach ?>
				             </select> -->
							 <select name="course_units" id="course_units" >
								<option value="-1">开课单位</option>
								<?php foreach ($course_units as $k => $v):?>
									<option value="<?=$v?>"><?=$v?></option>
								<?php endforeach ?>
							</select>
							<select name="listen_type" id="listen_type" disabled="disabled">
								<option value="-1">日常听课</option>
								<!--<option value="-1">听课类型</option>
								<?php /*foreach ($listen_type as $k => $v): */?>
									<option <?php /*echo $v['option']; */?> value="<?php /*echo $v['option']; */?>"><?php /*echo $v['option']; */?></option>
								--><?php /*endforeach; */?>
							</select>
				             <select name="teachersAttribute" id="teachersAttribute" >
				               <option value="-1">教师属性</option>
				               <?php foreach ($teachersAttribute as $k => $v):?>
				                <option value="<?=$v['Value']?>"><?=$v['Caption']?></option>
				               <?php endforeach ?>
				             </select>
				              <select name="type" id="type">
	                            <option value="-1">听课身份</option>
	                            <?php foreach ((new NoAttendType())->getAll() as $k => $v): ?>
	                                <option value="<?php echo $v[XPHEnum::Value]; ?>"><?php echo $v[XPHEnum::Caption]; ?></option>
	                            <?php endforeach; ?>
	                        </select>
				             <input type="text" name="username" id="username" placeholder="教师姓名" >
							<input type="text" name="start_time" id="start_time" autocomplete="off" value="<?=date("Y").'-01-01'; ?>" placeholder="请选择起始时间" >
							<input type="text" name="end_time" id="end_time" autocomplete="off" value="<?=date('Y-m-d') ?>" placeholder="请选择终止时间">
					</form >
				</div>
			</div>
			<div class="operationRow">
 				<button class="pageItemButton" onclick="Export()"><i class="icon-edit"></i>导出</button>
			</div>
			        
			<div class="listcontent">
				<div class='xrTableRow'>
					<table id="table" class="xrTable">
						<thead>
							<tr>
								<th name="_xrno"></th>
							<!-- 	<th name="_oper" style="width: 120px;">操作</th>       -->                                              
                                 <th name="_username" > 姓名 </th>
                                <th name="_usercode" > 教工号 </th>
                                <th name="_dept_name" > 部门</th>
                                <th name="_teachers_attribute" > 教师属性</th>
                               
							</tr>
						</thead>
					</table>
				</div>
			</div>
		</div>
	</body>
	<script>
		$("body").keydown(function() {
             if (event.keyCode == "13") {//keyCode=13是回车键
                 $('.searchButton').click();
             }
         });
		$("#title").change(function(){
			$('.searchButton').click();
		});
		$("#class_name").change(function(){
			$('.searchButton').click();
		});
		$("#type").change(function(){
			$('.searchButton').click();
		});
		$("#dept_name").change(function(){
			$('.searchButton').click();
		});
		$("#teachersAttribute").change(function(){
			$('.searchButton').click();
		});
	</script>
</html>